<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
</head>
<body>
  <div id="app">
      {{message}}<!--胡须表达式，mustache-->
       {{Math.round(1.3)}}
        {{1+1}}
      {{1>2?message:arr.length}}

      <input v-model="message"/>  <!--指令-->
       <div v-once>
           {{message}}
       </div>

      <a :href="message">职业</a>
      <button @click="btnClick">按钮1</button>

      <div v-html="message">

      </div>
  </div>
</body>
<script src="../../lib/vue.js"></script>
<script>
    new Vue({
        el:'#app',
        data:{
            message:'<h1>hello</h1>',
            arr:[1,2]
        },methods:{
            btnClick:function () {
                 alert('你点击我！');
            }
        }
    })

</script>
</html>